package cn.com.connected.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import cn.com.connected.vo.LiveMessageVo;
import cn.com.connected.dto.LiveMessageDto;
import cn.com.connected.service.LiveMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


/**
 * 意见反馈
 * @author sms
 * @email sms@live.com
 * @date 2022-10-04 20:57:24
 */
@Api(tags = "意见反馈")
@RestController
@Slf4j
public class LiveMessageController extends BaseController  {

    @Autowired
    private LiveMessageService liveMessageService;

    @ApiOperation(value="描述:意见反馈添加 ok")
    @RequestMapping(value="/wx/v1/live-message",method= RequestMethod.POST)
    public LiveMessageVo liveMessageAdd(@RequestBody @Validated LiveMessageDto liveMessageDto) {
        return liveMessageService.liveMessageAdd(liveMessageDto);
    }

//    @ApiOperation(value="描述:意见反馈详情 ok")
//    @RequestMapping(value="/wx/v1/live-message/{id}",method= RequestMethod.GET)
//    public LiveMessageVo liveMessageInfo(@PathVariable("id") String id) {
//        return liveMessageService.liveMessageInfo(id);
//    }
//
//    @ApiOperation(value="描述:意见反馈编辑 ok")
//    @RequestMapping(value="/wx/v1/live-message/{id}",method= RequestMethod.PUT)
//    public void liveMessageEdit(@PathVariable("id") String id, @RequestBody @Validated LiveMessageDto liveMessageDto) {
//            liveMessageService.liveMessageEdit(id,liveMessageDto);
//    }
//
//    @ApiOperation(value="描述:意见反馈删除 ok")
//    @RequestMapping(value="/wx/v1/live-message/{id}",method= RequestMethod.DELETE)
//    public void liveMessageDel(@PathVariable("id") String id) {
//            liveMessageService.liveMessageDel(id);
//    }
//
//    @ApiOperation(value="描述:意见反馈列表 ok")
//    @RequestMapping(value="/wx/v1/live-messages",method= RequestMethod.POST)
//    public PageResult<LiveMessageVo> liveMessages(@RequestBody BaseSearchDto<LiveMessageSearchDto> searchParams) {
//        return liveMessageService.liveMessagePage(searchParams);
//    }


}
